<notempty name="returns">
<div class="ta_xx">
	<foreach name="returns" item="return">
	<div class="lm">
    	<div class="bc">状态:{$task.status_info}</div>
       	<div class="bc">{:L('_LAUNCH_PERSON')}:{$return.num}</div>
        <div class="bc">{:L('_CREATE_TIME')}:{$return.create_time|date=" Y-m-d G:i",###}</div>
    </div>
    <div class="rm">
    	<div class="bc">备注:{$return.remark}</div>
    </div>
   	<div class="clear"></div>
    </foreach>
</div>
</notempty>
	<form method="post" action="{:U('/TaskManage/update/')}" id="updateFrom">
    <div class="rw_tit"></div>
    <div class="tadd">
    <div class="h">
		<p class="p1">{:L('_ID')}</p>
		<p class="p2">{$task.id}</p>
		<div class="clear"></div>
	</div>
			<div class="h">
				<p class="p1">{:L('_LOCATION')}</p>
				<p class="p2">{$task.mall.name} {$task.floor.name}{$task.brand.name}</p>
				<div class="clear"></div>
			</div>
			<notempty name="phones">
			<div class="h">
				<p class="p1">{:L('_PHONE')}</p>
				<p class="p2">
					<foreach item="phone" name="phones">
					{$phone.name} : {$phone.phone}<br/>
					</foreach>
				</p>
				<div class="clear"></div>
			</div>
			</notempty>
			<div class="h">
				<p class="p1">{:L('_TITLE')}</p>
				<p class="p2">
					<input type="text" maxlength="20" name="title"
						value="{$task.title}" class="yanz" />
				</p>
				<span class="must">*</span>
				<div class="clear"></div>
			</div>
			<div class="h">
				<p class="p1">{:L('_KEYWORD')}</p>
				<p class="p2">
					<input type="radio" name="keyword" value="优惠促销" checked="checked"/>优惠促销
					<input type="radio" name="keyword" value="新品上市"/>新品上市
				</p>
				<span class="must">*</span>
				<div class="clear"></div>
			</div>
			<div class="h">
				<p class="p1">{:L('_START_TIME')}</p>
				<p class="p2">
					<input type="text" readonly="readonly" name="start_time"
						value="{$task.start_time|date=" Y-m-d",###}"
					id="start_time"
						class="yanz" />
				</p>
				<span class="must">*</span>
				<div class="clear"></div>
			</div>
			<div class="h">
				<p class="p1">{:L('_END_TIME')}</p>
				<p class="p2">
					<input type="text" readonly="readonly" name="end_time"
						value="{$task.end_time|date=" Y-m-d",###}" id="end_time"
						class="yanz" />
				</p>
				<span class="must">*</span>
				<div class="clear"></div>
			</div>
			<div class="h">
				<p class="p1">{:L('_CONTENT')}</p>
				<p class="p2">
					<textarea name="content" class="nr">{$task.content}</textarea>
				</p>
				<div class="clear"></div>
			</div>
			<div class="h">
				<p class="p1">{:L('_REMARK')}</p>
				<p class="p2">
					<textarea name="remark" class="nr">{$task.remark}</textarea>
					<notempty name="returns"><span class="must">*</span></notempty>
				</p>
				<div class="clear"></div>
			</div>
			<div class="h">
				<p class="p1">&nbsp;</p>
				<p class="p3">
					<input type="submit" value="" class="update" />
					<input type="hidden" name="id" value="{$task.id}">
				</p>
			</div>
	</form>
</div>
<script type="text/javascript">
	$(function() {
		$("#start_time").datepicker({
			changeMonth : true,
			changeYear : true,
			dateFormat : "yy-mm-dd"
		});
		$("#end_time").datepicker({
			changeMonth : true,
			changeYear : true,
			dateFormat : "yy-mm-dd"
		});
		$('#updateFrom').ajaxForm({
			dataType : 'json',
			success : processJson
		});
		function processJson(data) {
			if(data.status){
				$("#task").html("");
			}
			alert(data.data);
		}
	});
</script>